<!DOCTYPE html>
<!-- manifest="/header.appcache" -->
<html lang="en" manifest="/header.appcache">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>购物车</title>
</head>
<script src="../../js/edition.js"></script>
<link rel="stylesheet" href="../../css/base.css">
<script>
        document.write("<l"+"ink rel='stylesheet' href='../../css/cart.css?version="+edition+"'>")
</script>
<link rel="stylesheet" href="../../css/popover.css">
<script>
        document.write("<l"+"ink rel='stylesheet' href='../../css/index.css?version="+edition+"'>")
</script>
<script src="../../js/jquery.js"></script>
<script src="../../js/template.js"></script>
<script> 
        document.write("<s"+"cript type='text/javascript' src='../../js/url.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<script> 
        document.write("<s"+"cript type='text/javascript' src='../../js/cart.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<script src="../../js/popover.js"></script>
<script src="../../js/header.js"></script>
<script src="../../js/index_foot.js"></script>
<script>
    $(function(){
        // alert('55555')
        $('.foot_list').each(function(){
            var i=$(this).find('img').attr('src')
            // alert(i)
            $(this).find('img').attr('src','../../'+i)
        })
    })
</script>
<script src="../../js/jquery.cookie.js"></script>
<script> 
        document.write("<s"+"cript type='text/javascript' src='../../js/login.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<script src="../../js/cookie.js"></script>
<script>
    if($.cookie('user')!=''&&$.cookie('user')!=null){
        
    }
    else{
        window.location.href='/index.html'
    }
</script>
<body style="background:#fff">
    <header class="mod_head">
        <script>
            $(function(){
                var src=$('.mod_logo img').attr('src')
                $('.mod_logo img').attr('src','../'+src)
            })   
        </script> 
    </header>
    <div class="cart_bg">
        <form action="" id="form" style="min-height:516px;background:#fff;">
            <div class="cart_tit">
                <ul>
                    <li class="active">
                        <em>1</em>我的购物车
                    </li>
                    <li style="margin-left:111px">
                        <em>2</em>结算
                    </li>
                    <li style="margin-left:122px">
                        <em>3</em>完成
                    </li>
                </ul>
                <div class="jindu"></div>
            </div>
            <div class="cart_num cart_num_one">
                <h2>全部商品<i>(</i><em>0件</em><i>)</i></h2>
            </div>
            <div class="cart_list cart_list_one">
                <dl id="cart_w">
                    <dt id="cart">
                        <ul>
                            <li class="one"><input type="checkbox" class="checkbox_all" name="" id="checkbox">全选</li>
                            <li class="two">商品</li>
                            <li class="three">单价</li>
                            <li class="four">数量</li>
                            <li class="five">小计</li>
                            <li class="seven">总重</li>
                            <li class="six">操作</li>
                        </ul>                    
                    </dt>
                    
                </dl>
                <div class="clearing">
                    <span class="fl">
                        <input type="checkbox" id="checkbox_all" class="checkbox_all" name="">全选
                        <a id="delete_all">删除选中商品</a>
                    </span>
                    <span class="fr">
                        <p class="fl">已选择商品 <em>0</em> 件</p>
                        <p class="fl">合计:<i>￥0.00</i></p>
                        <input type="submit" id="submit" value='去结算'>
                    </span>
                </div>
            </div>
        </form>
    </div>
    <!-- 底部 -->
    <footer class="mod_foot"></footer>
    <script type="text/html" id="cart_bg">
        {{for(var i=0; i<list.length; i++) { }}
            <dd data-isDelete="{{=list[i].isDelete}}" data-state="{{=list[i].state}}" class="dd_list">
                <ul>
                    <li class="one checkbox_bg">
                        <input type="checkbox" class="checkbox" name="goodsId" value="{{=list[i].goodsId}}" id="">
                        <em>占位</em>
                    </li>
                    <input type='hidden' class='cartId' name='cartId' id='' value='{{=list[i].cartId}}'>   
                    <a class="cart_delete" href='/src/goods/goods_detail.html?goodsId={{=list[i].goodsId}}'>
                        <li class="two">
                            <p class="cart_img fl">
                                <img src="{{=list[i].image}}" alt="" srcset="">
                            </p>
                            <p class="cart_text">{{=list[i].name}}</p>
                            <p class="speci">
                                <em>规格：</em>
                                <span class="spec">{{=list[i].spec}}</span> 
                            </p>        
                        </li>
                    </a>
                    <li class="three">
                        ￥<em>{{=list[i].unitPrice}}</em>
                    </li>
                    <li class="four">
                        <div class="sum_bg">
                            <input class="jian" readonly="readonly"  type="button" value="-">
                            <input readonly="readonly"  class="text num" id='' type="text" value="{{=list[i].num}}" name="num">
                            <input readonly="readonly"  class="jia" type="button" value="+">
                        </div>
                    </li>
                    <li class="five">
                        ￥<em>{{=list[i].totalPrice}}</em>
                    </li>
                    <li class="seven">{{=list[i].totalWeight}}</li>
                    <li class="six">
                        <input type="button" class="delete" value="删除">
                    </li>
                </ul>
            </dd>
        {{ } }}
    </script>  
    <script> 
        document.write("<s"+"cript type='text/javascript' src='../../js/nav_hover.js?version="+edition+"'></scr"+"ipt>"); 
    </script>
</body>
</html>